package com.sgai.zero_robot.pojo;

import java.util.List;
import java.util.Objects;

public class InstallInfo {
    //线路名称
    public String lineName;
    //杆塔名称
    //杆塔名称
    public String towerName;
    //安装位
    public int install;
    public  String province;
    public  String city;
    //相位列表
    public List<PhaseInfo> phaseInfos;

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        InstallInfo that = (InstallInfo) o;
        return Objects.equals(lineName, that.lineName) && Objects.equals(towerName, that.towerName) && install== that.install;
    }

    @Override
    public int hashCode() {
        return Objects.hash(lineName, towerName, install);
    }
}
